#ifndef FOLDERVIEWER_H
#define FOLDERVIEWER_H

#include <QWidget>
#include "ui_FolderViewer.h"
class QModelViewer;
class FolderViewer : public QWidget
{
	Q_OBJECT

public:
	FolderViewer(QWidget *parent = 0);
	~FolderViewer();
	void setQModelViewer(QModelViewer* pModelViewer);
protected slots:
	void onFolderViewClicked(const QModelIndex &index);
	void onFileIitemDoubleClicked(QListWidgetItem* item);
private:
	Ui::FolderViewer ui;
	QFileSystemModel* m_pFileModel;
	QModelViewer* m_pModelViewer;
	QString m_sCurrentPath;
};

#endif // FOLDERVIEWER_H
